import machine
from ST7735 import TFT
from sysfont import sysfont

spi = machine.SPI(1,baudrate=10000000,polarity=0,phase=0,sck=machine.Pin(10),mosi=machine.Pin(11),miso=None)
dc = machine.Pin(1)
rst = machine.Pin(2)

display = TFT(spi,1,2,0)
display.initb2()
display.rgb(True)
display.fill(TFT.BLACK)
display.text((0,0),'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere.',TFT.WHITE,sysfont,1)
#display.update()
